package com.sh.data.engine.domain.normalization.modeldesign.cdm.model.domain;

import com.sh.data.engine.domain.base.model.BaseDomain;
import lombok.*;
import lombok.experimental.SuperBuilder;

import java.util.Set;

@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@AllArgsConstructor
@SuperBuilder
@Data
public class TblRelationDomain extends BaseDomain {

    /**
     * 项目id
     */
    private Long projectId;

    /**
     * 主表id
     */
    private Long mainTableId;

    /**
     * 主表字段
     */
    private String mainTableField;

    private Set<String> mainTableFields;

    /**
     * 外键关联表id
     */
    private Long foreignTableId;

    /**
     * 关联表字段
     */
    private String foreignTableField;

    private Set<String> foreignTableFields;

    /**
     * 是否是主表出去的
     */
    private Boolean isFromMain = false;

    private String uuid;

    private Integer type;
}
